home *** CD-ROM | disk | FTP | other *** search
-
- Plumber's tee for pipes.
-
- Don Harbaugh 6/7/84
-
- Tee is a program that gets characters from standard input, puts
- them to standard output, and also puts them to the screen.
-
- This may not sound like a useful program, but imagine this:
- You are going to run a program called CRUNCH that takes 6 hours
- to complete, and that puts more than a screenful of data to
- standard output. You don't want to sit there for hours watching
- the screen, and you don't have a printer, so you redirect the
- standard output to a file, like this:
-
- A>CRUNCH >LISTOUT
-
- You start the program and return 6 hours later to find that
- during the first 5 minutes of execution it suffered a fatal
- error that you never saw because the standard output was
- redirected to a file. You have wasted 6 hours.
-
- Tee allows you to put standard output into a file, but also see
- it on the screen. You use it like this:
-
- A>CRUNCH | TEE >LISTOUT
-
- DOS pipes the standard output of CRUNCH to the standard input of
- Tee. Tee puts the characters to standard output, which you have
- redirected to a file. Tee also displays the characters on the
- screen, so that you can check things from time to time.
-
-
-
- ed to a file. Tee also displays